package com.javasm.gg;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Objects;

@TableName("gg_brand")
public class Brand {
  @TableId(type = IdType.AUTO)
  private Integer id;//序号
  private String brandName;//品牌名称
  private String brandUrl;//品牌网址
  private String brandDescribe;//品牌描述

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    Brand brand = (Brand) o;
    return id.equals(brand.id);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id);
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getBrandName() {
    return brandName;
  }

  public void setBrandName(String brandName) {
    this.brandName = brandName;
  }


  public String getBrandUrl() {
    return brandUrl;
  }

  public void setBrandUrl(String brandUrl) {
    this.brandUrl = brandUrl;
  }


  public String getBrandDescribe() {
    return brandDescribe;
  }

  public void setBrandDescribe(String brandDescribe) {
    this.brandDescribe = brandDescribe;
  }

}
